package nowcoder.huawei;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.*;

/**
 * @author wuguojian
 * @description
 * https://www.nowcoder.com/practice/8c949ea5f36f422594b306a2300315da
 **/
public class HJ1 {
    public static void main(String[] args) throws FileNotFoundException {
        Scanner in = new Scanner(new FileReader("input/nowcoder_huawei/HJ1.txt"));
//        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            String s = in.nextLine();
            String[] words = s.split(" ");
            System.out.println(words[words.length-1].length());
        }
    }
}
